package com.sc.nft.admin.request;

import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class TypeDTO extends PageRequest {

    @ApiModelProperty(value = "daoId")
    @NotNull(message = "daoId不能为空")
    private Long daoId;

    @ApiModelProperty(value = "类型1 充值 2 消耗")
    @NotNull(message = "类型1不能为空")
    @Range(min = 1, max = 2, message = "类型1只能为1或2")
    private Integer type;

}
